<?
define('ROOT', $_SERVER['DOCUMENT_ROOT']);
require_once(ROOT.'/public/global.php');
require_once(ROOT.'/lang/'.$LN.'.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<? require_once(ROOT.'/public/ref.php'); ?>
<title>mac-flow - 配置</title>
<meta name="description" content="Index Page of Javascript JQuery Ext Plugins" />
<meta name="keywords" content="Javascript JQuery Ext Grid ComoBox Tree Tabs Plugin Demo Download" />
<script type="text/javascript">
$(function(){
	function adjust(){
		var de = document.documentElement
			, ch = de.clientHeight, cw = de.clientWidth;
		$('#body').width(cw - 16);
	}
	$(window).resize(adjust);
	adjust();
});
</script>
</head>
<body>
<? require_once(ROOT.'/public/head.php'); ?>
<div id="body">
	<div class="dir">
<? require_once('./dir.php'); ?>
	</div>
	<div class="main">
		<div id="nav">
			<div id="nav_path">
				<a href="<?=$LP?>">Home</a>
				&gt;
				<a href="<?=$LP?>mac/flow">mac-flow</a>
				&gt;
				配置
			</div>
			<div id="nav_back">
				<a href="javascript:history.back()"><?=$Msg['back']?></a>
				|
				<a href="<?=$LP?>"><?=$Msg['up']?></a> &nbsp;&nbsp;
			</div>
			<div class="clear"></div>
		</div>
<h1>mac-flow - 配置</h1>
<h2>流程应用的配置</h2>
&nbsp;&nbsp;flow.xml重点配置项如下：
<xmp>
	<bean id="simpleFlowEngine" class="com.boarsoft.flow.core.SimpleFlowEngineImpl">
		<!-- 用于流程执行所用线程池 -->
		<property name="threadPool" ref="threadPool" />
		<!-- 用于流程超时检查等定时处理的线程池 -->
		<property name="scheduler" ref="scheduler" />
		<!-- 标明当前流程引擎所属的系统（调用链跟踪时用） -->
		<property name="catalog" value="sample" />
	</bean>
</xmp>
<h2>流程设计器的配置</h2>
&nbsp;&nbsp;conf/config.properties必要的配置如下：
<xmp>
	#用于保存生成的流程XML的路径
	flow.flows.dir=d:/temp/demo/flows
	#用于保存生成的流程图的路径
	flow.diagrams.dir=d:/temp/demo/diagrams
</xmp>
&nbsp;&nbsp;dao.xml必要的配置如下：
<xmp>
	<property name="jdbcUrl"
		value="jdbc:mysql://127.0.0.1:3306/mac-flow?characterEncoding=UTF-8&amp;useUnicode=true&amp;autoReconnect=true" />
	<property name="user" value="boar" />
	<property name="password" value="123" />
</xmp>
	</div>
</div>
<? require_once(ROOT.'/public/foot.html'); ?>
</body>
</html>
<?
$fp = ROOT.$LP.'/mac/flow/';
output(basename(__FILE__), $fp.'config.html');
?>